.class public Lrexsee/open/TencentOauth;
.super Ljava/lang/Object;
.source "TencentOauth.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lrexsee/open/TencentOauth$OauthRunnable;,
        Lrexsee/open/TencentOauth$SignatureBase;
    }
.end annotation


# static fields
.field private static final STRING_ACCESSTOKEN:Ljava/lang/String; = "\u6b63\u5728\u83b7\u53d6\u8bbf\u95ee\u5bc6\u94a5......"

.field private static final STRING_REQUESTTOKEN:Ljava/lang/String; = "\u6b63\u5728\u83b7\u53d6\u7533\u8bf7\u5bc6\u94a5......"

.field private static final URL_TENCENTWEIBO_ACCESSTOKEN:Ljava/lang/String; = "https://open.t.qq.com/cgi-bin/access_token"

.field private static final URL_TENCENTWEIBO_REQUESTTOKEN:Ljava/lang/String; = "https://open.t.qq.com/cgi-bin/request_token"

.field private static final URL_TENCENTWEIBO_VERIFIERWINDOW:Ljava/lang/String; = "https://open.t.qq.com/cgi-bin/authorize"


# instance fields
.field private final mBrowser:Lrexsee/core/browser/Browser;

.field private mVerifierWindow:Lrexsee/dialog/PopupWindow;

.field private final oauth_callback:Ljava/lang/String;

.field private oauth_consumer_key:Ljava/lang/String;

.field private oauth_consumer_secret:Ljava/lang/String;

.field private oauth_nonce:Ljava/lang/String;

.field private oauth_signature:Ljava/lang/String;

.field private final oauth_signature_method:Ljava/lang/String;

.field private oauth_timestamp:Ljava/lang/String;

.field private oauth_token:Ljava/lang/String;

.field private oauth_token_secret:Ljava/lang/String;

.field private oauth_verifier:Ljava/lang/String;

.field private final oauth_version:Ljava/lang/String;

.field public status_access_token:Z

.field public status_request_token:Z


# direct methods
.method public constructor <init>(Lrexsee/core/browser/Browser;)V
    .locals 3
    .param p1, "browser"    # Lrexsee/core/browser/Browser;

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x0

    .line 59
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 41
    iput-object v1, p0, Lrexsee/open/TencentOauth;->mVerifierWindow:Lrexsee/dialog/PopupWindow;

    .line 43
    const-string v0, "HMAC-SHA1"

    iput-object v0, p0, Lrexsee/open/TencentOauth;->oauth_signature_method:Ljava/lang/String;

    .line 44
    const-string v0, "1.0"

    iput-object v0, p0, Lrexsee/open/TencentOauth;->oauth_version:Ljava/lang/String;

    .line 45
    const-string v0, "null"

    iput-object v0, p0, Lrexsee/open/TencentOauth;->oauth_callback:Ljava/lang/String;

    .line 47
    iput-object v1, p0, Lrexsee/open/TencentOauth;->oauth_consumer_key:Ljava/lang/String;

    .line 48
    iput-object v1, p0, Lrexsee/open/TencentOauth;->oauth_consumer_secret:Ljava/lang/String;

    .line 49
    iput-object v1, p0, Lrexsee/open/TencentOauth;->oauth_nonce:Ljava/lang/String;

    .line 50
    iput-object v1, p0, Lrexsee/open/TencentOauth;->oauth_timestamp:Ljava/lang/String;

    .line 51
    iput-object v1, p0, Lrexsee/open/TencentOauth;->oauth_signature:Ljava/lang/String;

    .line 52
    iput-object v1, p0, Lrexsee/open/TencentOauth;->oauth_token:Ljava/lang/String;

    .line 53
    iput-object v1, p0, Lrexsee/open/TencentOauth;->oauth_token_secret:Ljava/lang/String;

    .line 54
    iput-object v1, p0, Lrexsee/open/TencentOauth;->oauth_verifier:Ljava/lang/String;

    .line 56
    iput-boolean v2, p0, Lrexsee/open/TencentOauth;->status_request_token:Z

    .line 57
    iput-boolean v2, p0, Lrexsee/open/TencentOauth;->status_access_token:Z

    .line 60
    iput-object p1, p0, Lrexsee/open/TencentOauth;->mBrowser:Lrexsee/core/browser/Browser;

    .line 61
    return-void
.end method

.method static synthetic access$0(Lrexsee/open/TencentOauth;Lrexsee/open/TencentOauth$OauthRunnable;)V
    .locals 0

    .prologue
    .line 265
    invoke-direct {p0, p1}, Lrexsee/open/TencentOauth;->accessToken(Lrexsee/open/TencentOauth$OauthRunnable;)V

    return-void
.end method

.method static synthetic access$1(Lrexsee/open/TencentOauth;)Lrexsee/core/browser/Browser;
    .locals 1

    .prologue
    .line 40
    iget-object v0, p0, Lrexsee/open/TencentOauth;->mBrowser:Lrexsee/core/browser/Browser;

    return-object v0
.end method

.method static synthetic access$10(Lrexsee/open/TencentOauth;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 51
    iget-object v0, p0, Lrexsee/open/TencentOauth;->oauth_signature:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$11(Lrexsee/open/TencentOauth;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 50
    iget-object v0, p0, Lrexsee/open/TencentOauth;->oauth_timestamp:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$12(Lrexsee/open/TencentOauth;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 52
    iput-object p1, p0, Lrexsee/open/TencentOauth;->oauth_token:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$13(Lrexsee/open/TencentOauth;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 53
    iput-object p1, p0, Lrexsee/open/TencentOauth;->oauth_token_secret:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$14(Lrexsee/open/TencentOauth;Lrexsee/dialog/PopupWindow;)V
    .locals 0

    .prologue
    .line 41
    iput-object p1, p0, Lrexsee/open/TencentOauth;->mVerifierWindow:Lrexsee/dialog/PopupWindow;

    return-void
.end method

.method static synthetic access$15(Lrexsee/open/TencentOauth;)Lrexsee/dialog/PopupWindow;
    .locals 1

    .prologue
    .line 41
    iget-object v0, p0, Lrexsee/open/TencentOauth;->mVerifierWindow:Lrexsee/dialog/PopupWindow;

    return-object v0
.end method

.method static synthetic access$16(Lrexsee/open/TencentOauth;Ljava/lang/String;Lrexsee/open/TencentOauth$OauthRunnable;)Z
    .locals 1

    .prologue
    .line 202
    invoke-direct {p0, p1, p2}, Lrexsee/open/TencentOauth;->parseToken(Ljava/lang/String;Lrexsee/open/TencentOauth$OauthRunnable;)Z

    move-result v0

    return v0
.end method

.method static synthetic access$17(Lrexsee/open/TencentOauth;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 54
    iget-object v0, p0, Lrexsee/open/TencentOauth;->oauth_verifier:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$18(Lrexsee/open/TencentOauth;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 52
    iget-object v0, p0, Lrexsee/open/TencentOauth;->oauth_token:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$19(Lrexsee/open/TencentOauth;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 53
    iget-object v0, p0, Lrexsee/open/TencentOauth;->oauth_token_secret:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$2(Lrexsee/open/TencentOauth;Lrexsee/open/TencentOauth$OauthRunnable;)V
    .locals 0

    .prologue
    .line 213
    invoke-direct {p0, p1}, Lrexsee/open/TencentOauth;->showVerifierWindow(Lrexsee/open/TencentOauth$OauthRunnable;)V

    return-void
.end method

.method static synthetic access$3(Lrexsee/open/TencentOauth;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 47
    iput-object p1, p0, Lrexsee/open/TencentOauth;->oauth_consumer_key:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$4(Lrexsee/open/TencentOauth;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 48
    iput-object p1, p0, Lrexsee/open/TencentOauth;->oauth_consumer_secret:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$5(Lrexsee/open/TencentOauth;Ljava/lang/String;Ljava/lang/String;)Lrexsee/open/TencentOauth$SignatureBase;
    .locals 1

    .prologue
    .line 307
    invoke-direct {p0, p1, p2}, Lrexsee/open/TencentOauth;->getSignatureBase(Ljava/lang/String;Ljava/lang/String;)Lrexsee/open/TencentOauth$SignatureBase;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$6(Lrexsee/open/TencentOauth;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 48
    iget-object v0, p0, Lrexsee/open/TencentOauth;->oauth_consumer_secret:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$7(Lrexsee/open/TencentOauth;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 51
    iput-object p1, p0, Lrexsee/open/TencentOauth;->oauth_signature:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$8(Lrexsee/open/TencentOauth;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 47
    iget-object v0, p0, Lrexsee/open/TencentOauth;->oauth_consumer_key:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$9(Lrexsee/open/TencentOauth;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 49
    iget-object v0, p0, Lrexsee/open/TencentOauth;->oauth_nonce:Ljava/lang/String;

    return-object v0
.end method

.method private accessToken(Lrexsee/open/TencentOauth$OauthRunnable;)V
    .locals 1
    .param p1, "runnable"    # Lrexsee/open/TencentOauth$OauthRunnable;

    .prologue
    .line 267
    new-instance v0, Lrexsee/open/TencentOauth$4;

    invoke-direct {v0, p0, p1}, Lrexsee/open/TencentOauth$4;-><init>(Lrexsee/open/TencentOauth;Lrexsee/open/TencentOauth$OauthRunnable;)V

    .line 304
    invoke-virtual {v0}, Lrexsee/open/TencentOauth$4;->start()V

    .line 306
    return-void
.end method

.method private getSignatureBase(Ljava/lang/String;Ljava/lang/String;)Lrexsee/open/TencentOauth$SignatureBase;
    .locals 5
    .param p1, "url"    # Ljava/lang/String;
    .param p2, "method"    # Ljava/lang/String;

    .prologue
    .line 308
    const/16 v1, 0x20

    invoke-static {v1}, Lrexsee/core/utilities/Utilities;->getRandom(I)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lrexsee/open/TencentOauth;->oauth_nonce:Ljava/lang/String;

    .line 309
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    const-wide/16 v3, 0x3e8

    div-long/2addr v1, v3

    invoke-static {v1, v2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lrexsee/open/TencentOauth;->oauth_timestamp:Ljava/lang/String;

    .line 310
    new-instance v0, Lrexsee/open/TencentOauth$SignatureBase;

    invoke-direct {v0, p1, p2}, Lrexsee/open/TencentOauth$SignatureBase;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 311
    .local v0, "bs":Lrexsee/open/TencentOauth$SignatureBase;
    const-string v1, "oauth_consumer_key"

    iget-object v2, p0, Lrexsee/open/TencentOauth;->oauth_consumer_key:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lrexsee/open/TencentOauth$SignatureBase;->add(Ljava/lang/String;Ljava/lang/String;)V

    .line 312
    const-string v1, "oauth_signature_method"

    const-string v2, "HMAC-SHA1"

    invoke-virtual {v0, v1, v2}, Lrexsee/open/TencentOauth$SignatureBase;->add(Ljava/lang/String;Ljava/lang/String;)V

    .line 313
    const-string v1, "oauth_version"

    const-string v2, "1.0"

    invoke-virtual {v0, v1, v2}, Lrexsee/open/TencentOauth$SignatureBase;->add(Ljava/lang/String;Ljava/lang/String;)V

    .line 314
    const-string v1, "oauth_timestamp"

    iget-object v2, p0, Lrexsee/open/TencentOauth;->oauth_timestamp:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lrexsee/open/TencentOauth$SignatureBase;->add(Ljava/lang/String;Ljava/lang/String;)V

    .line 315
    const-string v1, "oauth_nonce"

    iget-object v2, p0, Lrexsee/open/TencentOauth;->oauth_nonce:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lrexsee/open/TencentOauth$SignatureBase;->add(Ljava/lang/String;Ljava/lang/String;)V

    .line 316
    return-object v0
.end method

.method private parseToken(Ljava/lang/String;Lrexsee/open/TencentOauth$OauthRunnable;)Z
    .locals 3
    .param p1, "url"    # Ljava/lang/String;
    .param p2, "runnable"    # Lrexsee/open/TencentOauth$OauthRunnable;

    .prologue
    const/4 v2, 0x1

    .line 203
    iget-object v1, p0, Lrexsee/open/TencentOauth;->oauth_verifier:Ljava/lang/String;

    if-eqz v1, :cond_0

    move v1, v2

    .line 210
    :goto_0
    return v1

    .line 204
    :cond_0
    const-string v0, "&v="

    .line 205
    .local v0, "split":Ljava/lang/String;
    if-eqz p1, :cond_2

    invoke-virtual {p1, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 206
    invoke-virtual {p1, v0}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    aget-object v1, v1, v2

    iput-object v1, p0, Lrexsee/open/TencentOauth;->oauth_verifier:Ljava/lang/String;

    .line 207
    if-eqz p2, :cond_1

    iget-object v1, p0, Lrexsee/open/TencentOauth;->oauth_verifier:Ljava/lang/String;

    invoke-virtual {p2, v2, v1}, Lrexsee/open/TencentOauth$OauthRunnable;->run(ZLjava/lang/String;)V

    :cond_1
    move v1, v2

    .line 208
    goto :goto_0

    .line 210
    :cond_2
    const/4 v1, 0x0

    goto :goto_0
.end method

.method private requestToken(Ljava/lang/String;Ljava/lang/String;Lrexsee/open/TencentOauth$OauthRunnable;)V
    .locals 1
    .param p1, "key"    # Ljava/lang/String;
    .param p2, "secret"    # Ljava/lang/String;
    .param p3, "runnable"    # Lrexsee/open/TencentOauth$OauthRunnable;

    .prologue
    .line 159
    new-instance v0, Lrexsee/open/TencentOauth$2;

    invoke-direct {v0, p0, p1, p2, p3}, Lrexsee/open/TencentOauth$2;-><init>(Lrexsee/open/TencentOauth;Ljava/lang/String;Ljava/lang/String;Lrexsee/open/TencentOauth$OauthRunnable;)V

    .line 199
    invoke-virtual {v0}, Lrexsee/open/TencentOauth$2;->start()V

    .line 201
    return-void
.end method

.method private showVerifierWindow(Lrexsee/open/TencentOauth$OauthRunnable;)V
    .locals 5
    .param p1, "runnable"    # Lrexsee/open/TencentOauth$OauthRunnable;

    .prologue
    const/4 v4, 0x0

    .line 214
    iget-object v2, p0, Lrexsee/open/TencentOauth;->mVerifierWindow:Lrexsee/dialog/PopupWindow;

    if-eqz v2, :cond_0

    .line 215
    iget-object v2, p0, Lrexsee/open/TencentOauth;->mVerifierWindow:Lrexsee/dialog/PopupWindow;

    invoke-virtual {v2}, Lrexsee/dialog/PopupWindow;->dismiss()V

    .line 216
    iput-object v4, p0, Lrexsee/open/TencentOauth;->mVerifierWindow:Lrexsee/dialog/PopupWindow;

    .line 218
    :cond_0
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "https://open.t.qq.com/cgi-bin/authorize?oauth_token="

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v3, p0, Lrexsee/open/TencentOauth;->oauth_token:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 219
    .local v1, "url":Ljava/lang/String;
    const-string v0, "TencentWeiboVerifierWindow"

    .line 220
    .local v0, "id":Ljava/lang/String;
    iput-object v4, p0, Lrexsee/open/TencentOauth;->oauth_verifier:Ljava/lang/String;

    .line 221
    iget-object v2, p0, Lrexsee/open/TencentOauth;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {v2}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v2

    check-cast v2, Landroid/app/Activity;

    new-instance v3, Lrexsee/open/TencentOauth$3;

    invoke-direct {v3, p0, v1, p1}, Lrexsee/open/TencentOauth$3;-><init>(Lrexsee/open/TencentOauth;Ljava/lang/String;Lrexsee/open/TencentOauth$OauthRunnable;)V

    invoke-virtual {v2, v3}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 264
    return-void
.end method

.method private static writeParamToOutput(Ljava/io/OutputStream;Ljava/lang/String;Ljava/lang/String;)V
    .locals 5
    .param p0, "baos"    # Ljava/io/OutputStream;
    .param p1, "key"    # Ljava/lang/String;
    .param p2, "value"    # Ljava/lang/String;

    .prologue
    const-string v4, "\r\n"

    .line 320
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    .line 321
    .local v1, "temp":Ljava/lang/StringBuilder;
    const-string v2, "--*****"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "\r\n"

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 322
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "content-disposition: form-data; name=\""

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "\""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "\r\n"

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "\r\n"

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 323
    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "\r\n"

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 324
    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v0

    .line 326
    .local v0, "res":[B
    :try_start_0
    invoke-virtual {p0, v0}, Ljava/io/OutputStream;->write([B)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 329
    :goto_0
    return-void

    .line 327
    :catch_0
    move-exception v2

    goto :goto_0
.end method


# virtual methods
.method public getHttpEntity(Ljava/util/HashMap;)Lorg/apache/http/HttpEntity;
    .locals 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)",
            "Lorg/apache/http/HttpEntity;"
        }
    .end annotation

    .prologue
    .line 96
    .local p1, "paramsMap":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    .line 97
    .local v3, "params":Ljava/util/List;, "Ljava/util/List<Lorg/apache/http/NameValuePair;>;"
    new-instance v4, Lorg/apache/http/message/BasicNameValuePair;

    const-string v5, "oauth_consumer_key"

    iget-object v6, p0, Lrexsee/open/TencentOauth;->oauth_consumer_key:Ljava/lang/String;

    invoke-direct {v4, v5, v6}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 98
    new-instance v4, Lorg/apache/http/message/BasicNameValuePair;

    const-string v5, "oauth_token"

    iget-object v6, p0, Lrexsee/open/TencentOauth;->oauth_token:Ljava/lang/String;

    invoke-direct {v4, v5, v6}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 99
    new-instance v4, Lorg/apache/http/message/BasicNameValuePair;

    const-string v5, "oauth_version"

    const-string v6, "1.0"

    invoke-direct {v4, v5, v6}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 100
    new-instance v4, Lorg/apache/http/message/BasicNameValuePair;

    const-string v5, "oauth_signature_method"

    const-string v6, "HMAC-SHA1"

    invoke-direct {v4, v5, v6}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 101
    new-instance v4, Lorg/apache/http/message/BasicNameValuePair;

    const-string v5, "oauth_signature"

    iget-object v6, p0, Lrexsee/open/TencentOauth;->oauth_signature:Ljava/lang/String;

    invoke-direct {v4, v5, v6}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 102
    new-instance v4, Lorg/apache/http/message/BasicNameValuePair;

    const-string v5, "oauth_nonce"

    iget-object v6, p0, Lrexsee/open/TencentOauth;->oauth_nonce:Ljava/lang/String;

    invoke-direct {v4, v5, v6}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 103
    new-instance v4, Lorg/apache/http/message/BasicNameValuePair;

    const-string v5, "oauth_timestamp"

    iget-object v6, p0, Lrexsee/open/TencentOauth;->oauth_timestamp:Ljava/lang/String;

    invoke-direct {v4, v5, v6}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 104
    new-instance v4, Lorg/apache/http/message/BasicNameValuePair;

    const-string v5, "format"

    const-string v6, "json"

    invoke-direct {v4, v5, v6}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 105
    invoke-virtual {p1}, Ljava/util/HashMap;->keySet()Ljava/util/Set;

    move-result-object v4

    invoke-interface {v4}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v1

    .line 106
    .end local p0    # "this":Lrexsee/open/TencentOauth;
    .local v1, "iterator":Ljava/util/Iterator;, "Ljava/util/Iterator<Ljava/lang/String;>;"
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-nez v4, :cond_0

    .line 111
    :try_start_0
    new-instance v4, Lorg/apache/http/client/entity/UrlEncodedFormEntity;

    const-string v5, "UTF-8"

    invoke-direct {v4, v3, v5}, Lorg/apache/http/client/entity/UrlEncodedFormEntity;-><init>(Ljava/util/List;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_0 .. :try_end_0} :catch_0

    .line 113
    :goto_1
    return-object v4

    .line 107
    :cond_0
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 108
    .local v2, "key":Ljava/lang/String;
    new-instance v4, Lorg/apache/http/message/BasicNameValuePair;

    invoke-virtual {p1, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/lang/String;

    invoke-static {p0}, Ljava/net/URLDecoder;->decode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v2, v5}, Lorg/apache/http/message/BasicNameValuePair;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 112
    .end local v2    # "key":Ljava/lang/String;
    :catch_0
    move-exception v4

    move-object v0, v4

    .line 113
    .local v0, "e":Ljava/io/UnsupportedEncodingException;
    const/4 v4, 0x0

    goto :goto_1
.end method

.method public getJson()Ljava/lang/String;
    .locals 4

    .prologue
    const-string v3, "\""

    .line 117
    const-string v0, "{"

    .line 118
    .local v0, "rtn":Ljava/lang/String;
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, "\"oauth_signature_method\":\"HMAC-SHA1\""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 119
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, ",\"oauth_version\":\"1.0\""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 120
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, ",\"oauth_callback\":\"null\""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 121
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, ",\"oauth_consumer_key\":\""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lrexsee/open/TencentOauth;->oauth_consumer_key:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\""

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 122
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, ",\"oauth_consumer_secret\":\""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lrexsee/open/TencentOauth;->oauth_consumer_secret:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\""

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 123
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, ",\"oauth_nonce\":\""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lrexsee/open/TencentOauth;->oauth_nonce:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\""

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 124
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, ",\"oauth_timestamp\":\""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lrexsee/open/TencentOauth;->oauth_timestamp:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\""

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 125
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, ",\"oauth_signature\":\""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lrexsee/open/TencentOauth;->oauth_signature:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\""

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 126
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, ",\"oauth_token\":\""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lrexsee/open/TencentOauth;->oauth_token:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\""

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 127
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, ",\"oauth_token_secret\":\""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lrexsee/open/TencentOauth;->oauth_token_secret:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\""

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 128
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, ",\"oauth_verifier\":\""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lrexsee/open/TencentOauth;->oauth_verifier:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\""

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 129
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, ",\"status_request_token\":"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-boolean v2, p0, Lrexsee/open/TencentOauth;->status_request_token:Z

    invoke-static {v2}, Ljava/lang/String;->valueOf(Z)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 130
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, ",\"status_access_token\":"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-boolean v2, p0, Lrexsee/open/TencentOauth;->status_access_token:Z

    invoke-static {v2}, Ljava/lang/String;->valueOf(Z)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 131
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, "}"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 132
    return-object v0
.end method

.method public login(Ljava/lang/String;Ljava/lang/String;Lrexsee/open/TencentOauth$OauthRunnable;)V
    .locals 1
    .param p1, "consumberKey"    # Ljava/lang/String;
    .param p2, "consumerSecret"    # Ljava/lang/String;
    .param p3, "runnable"    # Lrexsee/open/TencentOauth$OauthRunnable;

    .prologue
    .line 136
    new-instance v0, Lrexsee/open/TencentOauth$1;

    invoke-direct {v0, p0, p3}, Lrexsee/open/TencentOauth$1;-><init>(Lrexsee/open/TencentOauth;Lrexsee/open/TencentOauth$OauthRunnable;)V

    invoke-direct {p0, p1, p2, v0}, Lrexsee/open/TencentOauth;->requestToken(Ljava/lang/String;Ljava/lang/String;Lrexsee/open/TencentOauth$OauthRunnable;)V

    .line 155
    return-void
.end method

.method public sign(Ljava/lang/String;Ljava/lang/String;Ljava/util/HashMap;)Z
    .locals 7
    .param p1, "url"    # Ljava/lang/String;
    .param p2, "method"    # Ljava/lang/String;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)Z"
        }
    .end annotation

    .prologue
    .line 64
    .local p3, "paramsMap":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    invoke-direct {p0, p1, p2}, Lrexsee/open/TencentOauth;->getSignatureBase(Ljava/lang/String;Ljava/lang/String;)Lrexsee/open/TencentOauth$SignatureBase;

    move-result-object v0

    .line 65
    .local v0, "bs":Lrexsee/open/TencentOauth$SignatureBase;
    const-string v4, "oauth_token"

    iget-object v5, p0, Lrexsee/open/TencentOauth;->oauth_token:Ljava/lang/String;

    invoke-virtual {v0, v4, v5}, Lrexsee/open/TencentOauth$SignatureBase;->add(Ljava/lang/String;Ljava/lang/String;)V

    .line 66
    const-string v4, "format"

    const-string v5, "json"

    invoke-virtual {v0, v4, v5}, Lrexsee/open/TencentOauth$SignatureBase;->add(Ljava/lang/String;Ljava/lang/String;)V

    .line 67
    invoke-virtual {p3}, Ljava/util/HashMap;->keySet()Ljava/util/Set;

    move-result-object v4

    invoke-interface {v4}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v2

    .line 68
    .local v2, "iterator":Ljava/util/Iterator;, "Ljava/util/Iterator<Ljava/lang/String;>;"
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-nez v4, :cond_0

    .line 73
    :try_start_0
    invoke-virtual {v0}, Lrexsee/open/TencentOauth$SignatureBase;->get()Ljava/lang/String;

    move-result-object v4

    new-instance v5, Ljava/lang/StringBuilder;

    iget-object v6, p0, Lrexsee/open/TencentOauth;->oauth_consumer_secret:Ljava/lang/String;

    invoke-static {v6}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, "&"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget-object v6, p0, Lrexsee/open/TencentOauth;->oauth_token_secret:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Lrexsee/core/utilities/Utilities;->getHmacSHA1Signature(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    iput-object v4, p0, Lrexsee/open/TencentOauth;->oauth_signature:Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 74
    const/4 v4, 0x1

    .line 77
    :goto_1
    return v4

    .line 69
    :cond_0
    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    .line 70
    .local v3, "key":Ljava/lang/String;
    invoke-virtual {p3, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    invoke-virtual {v0, v3, v4}, Lrexsee/open/TencentOauth$SignatureBase;->add(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 75
    .end local v3    # "key":Ljava/lang/String;
    :catch_0
    move-exception v4

    move-object v1, v4

    .line 76
    .local v1, "e":Ljava/lang/Exception;
    iget-object v4, p0, Lrexsee/open/TencentOauth;->mBrowser:Lrexsee/core/browser/Browser;

    const-string v5, "Oauth.signAPI"

    invoke-virtual {v4, v5, v1}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    .line 77
    const/4 v4, 0x0

    goto :goto_1
.end method

.method public writeToOutput(Ljava/io/OutputStream;Ljava/util/HashMap;)V
    .locals 4
    .param p1, "dos"    # Ljava/io/OutputStream;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/io/OutputStream;",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 81
    .local p2, "paramsMap":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    const-string v2, "oauth_consumer_key"

    iget-object v3, p0, Lrexsee/open/TencentOauth;->oauth_consumer_key:Ljava/lang/String;

    invoke-static {p1, v2, v3}, Lrexsee/open/TencentOauth;->writeParamToOutput(Ljava/io/OutputStream;Ljava/lang/String;Ljava/lang/String;)V

    .line 82
    const-string v2, "oauth_token"

    iget-object v3, p0, Lrexsee/open/TencentOauth;->oauth_token:Ljava/lang/String;

    invoke-static {p1, v2, v3}, Lrexsee/open/TencentOauth;->writeParamToOutput(Ljava/io/OutputStream;Ljava/lang/String;Ljava/lang/String;)V

    .line 83
    const-string v2, "oauth_version"

    const-string v3, "1.0"

    invoke-static {p1, v2, v3}, Lrexsee/open/TencentOauth;->writeParamToOutput(Ljava/io/OutputStream;Ljava/lang/String;Ljava/lang/String;)V

    .line 84
    const-string v2, "oauth_signature_method"

    const-string v3, "HMAC-SHA1"

    invoke-static {p1, v2, v3}, Lrexsee/open/TencentOauth;->writeParamToOutput(Ljava/io/OutputStream;Ljava/lang/String;Ljava/lang/String;)V

    .line 85
    const-string v2, "oauth_signature"

    iget-object v3, p0, Lrexsee/open/TencentOauth;->oauth_signature:Ljava/lang/String;

    invoke-static {p1, v2, v3}, Lrexsee/open/TencentOauth;->writeParamToOutput(Ljava/io/OutputStream;Ljava/lang/String;Ljava/lang/String;)V

    .line 86
    const-string v2, "oauth_nonce"

    iget-object v3, p0, Lrexsee/open/TencentOauth;->oauth_nonce:Ljava/lang/String;

    invoke-static {p1, v2, v3}, Lrexsee/open/TencentOauth;->writeParamToOutput(Ljava/io/OutputStream;Ljava/lang/String;Ljava/lang/String;)V

    .line 87
    const-string v2, "oauth_timestamp"

    iget-object v3, p0, Lrexsee/open/TencentOauth;->oauth_timestamp:Ljava/lang/String;

    invoke-static {p1, v2, v3}, Lrexsee/open/TencentOauth;->writeParamToOutput(Ljava/io/OutputStream;Ljava/lang/String;Ljava/lang/String;)V

    .line 88
    const-string v2, "format"

    const-string v3, "json"

    invoke-static {p1, v2, v3}, Lrexsee/open/TencentOauth;->writeParamToOutput(Ljava/io/OutputStream;Ljava/lang/String;Ljava/lang/String;)V

    .line 89
    invoke-virtual {p2}, Ljava/util/HashMap;->keySet()Ljava/util/Set;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

    .line 90
    .end local p0    # "this":Lrexsee/open/TencentOauth;
    .local v0, "iterator":Ljava/util/Iterator;, "Ljava/util/Iterator<Ljava/lang/String;>;"
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-nez v2, :cond_0

    .line 94
    return-void

    .line 91
    :cond_0
    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    .line 92
    .local v1, "key":Ljava/lang/String;
    invoke-virtual {p2, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/lang/String;

    invoke-static {p0}, Ljava/net/URLDecoder;->decode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {p1, v1, v2}, Lrexsee/open/TencentOauth;->writeParamToOutput(Ljava/io/OutputStream;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method
